.content.replay-listing {
	margin: 1em auto;
}

.game-history-item {
	&>a {
		border: 2px solid #bbbbbb;
		background-color: rgb(247, 247, 247);
		border-radius: 4px;
		color: inherit;
		display: block;
		line-height: 1.42857143;
		margin-bottom: 20px;
		padding: 4px;

		&.won {
			border-color: #8ce62c;
			background-color: rgb(240, 245, 233);
		}

		&.lost {
			border-color: #e64032;
			background-color: rgb(245, 236, 233);
		}
	}
}


.hsreplay-thumbnail {
}

a.hsreplay-thumbnail:link, a.hsreplay-thumbnail:hover {
	color: inherit;
}

/* Top section (.hsreplay-involved) */

.hsreplay-involved {
	margin: 0;
	position: relative;
	width: 100%;
	white-space: nowrap;
}

.hsreplay-involved figure {
	display: inline-block;
	width: calc(50% - 1px);
	position: relative;
	clip-path: rect(2%, 10%, 2%, 10%);
	margin-right: 2px;
	font-size: 4vw;
	overflow: hidden;
}

.hsreplay-involved figure img {
	width: 100%;
	background-color: black;
}

.hsreplay-involved figcaption {
	background-color: rgba(0, 0, 0, 0.65);
	color: white;
	display: flex;
	font-weight: bold;
	margin-top: -25%;
	position: absolute;
	width: 100%;
	bottom: 0;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000,
		-1px 1px 0 #000, 1px 1px 0 #000;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
	line-height: 1.3em;
	padding: 0.25em 0;
}

.hsreplay-involved:hover figcaption {
	opacity: 0.5;
}

@media (min-width: 768px) {
	.hsreplay-involved figure {
		font-size: 2vw;
	}
}

@media (min-width: 992px) {
	.hsreplay-involved figure {
		font-size: 1.5vw;
	}
}

@media (min-width: 1200px) {
	.content.replay-listing {
		max-width: 80%;
	}

	.hsreplay-involved figure {
		font-size: 1vw;
	}
}

.hsreplay-involved figure.winner:first-of-type:before {
	left: 0;
}

.hsreplay-involved figure.winner:last-of-type:before {
	right: 0;
}

.hsreplay-invalid .hsreplay-involved figure img {
	opacity: 0.6;
}

.hsreplay-versus {
	position: absolute;
	width: 12%;
	top: 44%;
	margin-left: 44%;
	z-index: 1;
}

.hsreplay-involved figure.loser img {
	filter: grayscale(100%);
	-webkit-filter: grayscale(100%);
	-moz-filter: grayscale(100%);
}

/* Bottom section (.hsreplay-details/.hsreplay-message) */

.hsreplay-details dl {
	margin: 4px 0;
	width: 50%;
	display: inline-block;
}

.hsreplay-details dt {
	color: #959595;
	font-size: 0.8em;
	font-style: italic;
	font-weight: normal;
	margin-top: 4px;
}

.hsreplay-details dd {
	font-size: 1.2em;
	font-weight: bold;
	margin-left: 4px;
}

.hsreplay-details > div {
	margin: 10px 0 0 0;
	width: 50%;
	display: inline-block;
	vertical-align: top;
	text-align: center;
	font-size: 1.2em;
	font-weight: bold;
}

.hsreplay-type {
	width: 50%;
}

#replay-filter {
	margin: 0 0 10px 0;

	input {
		float: right;
	}
}

.list-message {
	text-align: center;
	font-size: 1.5em;
	margin: 2em 0;

	h2 {
		font-weight: bold;
		font-size: 1.5em;
	}
}

#replay-search {
	margin-bottom: 6px;
}

#replay-search > div {
	margin-bottom: 4px;
}


/* Styling for empty section */

#play-some-hearthstone, #claim-account {
	text-align: center;
}

#play-some-hearthstone {
	margin-top: 8em;
}

#claim-account {
	margin: 5em 0;

	a {
		display: block;
		margin: 1em auto;
		width: 275px;

		img {
			border: 1px solid black;
			width: 275px;
		}
	}
}
